<?php
/**
 *    part view: favorites_list
 *    File: favorites/part/favorites_list.php
 */
if( count($favorites)>0 )
        {
          foreach ($favorites as $row)
          {
            if( $row->image_name != NULL )            
              $image = "<img src='".base_url()."profile/image/thumb/{$row->favorite_id}/{$row->image_name}' alt='{$row->username}'>";            
            else
              $image = "<img src='".base_url()."img/no_photo.gif' alt=''>";
            $name = ( $row->name != "" )?$row->name:$row->username;
            echo "
              
              <div class='notifications'>
              <a href='javascript:remove_favorite({$row->favorite_id})' class='delete-favorite confirmLink' name='' title='".lang('remove_favorites')."' alt='".lang('confirm_remove_favorite')."' ></a>
              <a href='".base_url()."profile/view-profile/{$row->username}.htm'>{$image}<span class='name'>{$name}</span>
              <span class='msg-intro'>{$row->flirt_text}</span>
              </a>
              <div class='clr'></div>
              </div><!--End notifications-->

                ";
              //<input class='delete-favorite' name='' onclick='remove_favorite({$row->id})' type='button'>
          }
        }
 ?>

        <div class="clr"></div>               
        <p id="contentspaginate" class="paginationstyle pagination" align="center">
					Página: <a href="#" rel="previous" class="imglinks"><<  </a> &nbsp; <span class="flatview"></span> &nbsp; <a href="#" rel="next"> >></a>
       </p>
       <script language='javascript' >
          var contents_home=new virtualpaginate({
              piececlass: "notifications",
              piececontainer: 'div', 
              pieces_per_page: 10,
              defaultpage: 0,
              wraparound: false,
              persist: false
          })

          contents_home.buildpagination(["contentspaginate"]);
        </script>	
        <script src="<?php echo base_url(); ?>js/dialog.js"></script>
